#ifndef CHANGEPASSWORDWIDGET_H
#define CHANGEPASSWORDWIDGET_H
#include <QWidget>
#include <QLabel>
#include <QLineEdit>
#include <QComboBox>
#include <QPushButton>
#include <QVBoxLayout>
#include <QGridLayout>
#include <QMessageBox>
#include <QtSql>


class ChangePasswordWidget : public QWidget
{
    Q_OBJECT
public:
    explicit ChangePasswordWidget(QWidget *parent = 0);
private:
    QLabel* titleLabel;

    QWidget* verifyWidget;
    QLabel* verifyLabel;
    QLabel* usernameLabel;
    QLineEdit* usernameLineEdit;
    QLabel* passwordLabel;
    QLineEdit* passwordLineEdit;
    QPushButton* verifyOkButton;

    QWidget* changeWidget;
    QLabel* changeLabel;
    QLabel* newUsernameLabel;
    QLineEdit* newUsernameLineEdit;
    QLabel* newPasswordLabel;
    QLineEdit* newPasswordLineEdit;
    QLabel* confirmPasswordLabel;
    QLineEdit* confirmPasswordLineEdit;
    QLabel* confirmHintLabel;
    QPushButton* changeOkButton;
    QPushButton* changeCancelButton;

    QString username;
public slots:
    void slotVerifyOkButton();
    void slotVerifyLineEditTextChange();
    void slotChangeOkButton();
    void slotChangeCancelButton();
    void slotChangeLineEditTextChange();
};

#endif // CHANGEPASSWORDWIDGET_H
